<?php
namespace Modules\Backend\Controllers;

class ConstantsController extends ControllerBase {
  public function findAction() {
    $constants = [];
    $constants['user_status'] = \Components\User\Sha\Constants::getByIndex('user_status');
    $constants['user_is_get_level'] = \Components\User\Sha\Constants::getByIndex('user_is_get_level');
    $constants['is_center'] = \Components\User\Sha\Constants::getByIndex('is_center');
    $constants['user_wallet_record_fields_name'] = \Components\User\Sha\Wallet\Constants::getByIndex('user_wallet_record_fields_name');
    $constants['user_wallet_record_type'] = \Components\User\Sha\Wallet\Record\Constants::getByIndex('user_wallet_record_type');

    return $this -> returnSuccessByJson(['msg'=>'Success','constants'=>$constants]);
  }
}
